package work30.b;

/**
 * 税务局类
 */
public class Tax {
    //名字
    public String name;
    //空方法
    public Tax(){

    }
    public Tax(String name){
        this.name = name;
    }
    public void let(Merchant merchant,Manage manage){
        System.out.println(this.name + "给" + merchant.name + manage.act + manage.money + "元");
    }

    public static void main(String[] args) {
        Tax tax = new Tax("四川教育局");
        Merchant merchant = new Merchant("小程零食店");
        Manage manage = new Manage("罚款",10000);
        tax.let(merchant,manage);
    }
}
